package model.DAO;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import model.Entity.SIS.Instructor;

import org.springframework.stereotype.Repository;

@Repository("InstructorDAO")
public class InstructorDAO extends GenericDAO {
	
	public List<Instructor> findFacultyInstructors(){
		return super.findByNamedQuery(Instructor.class, "getFacultyInstructor");
	}
	
	public List<Instructor> findFacultyInstructorByFaculty(Integer facultyNo){
		Map<String, Integer> paramMap = new HashMap<String, Integer>();
		paramMap.put("facultyNo", facultyNo);
		return super.findByNamedQuery(Instructor.class, "getFacultyInstructorByFaculty", paramMap);
	}
}
